package com.xhu.service.impl;

import com.xhu.bean.pojo.Emp;
import com.xhu.dao.EmpDao;
import com.xhu.dao.impl.EmpDaoImpl;
import com.xhu.service.EmpService;
import com.xhu.utils.MD5Utils;

public class EmpServiceImpl implements EmpService {

    private EmpDao empDao=new EmpDaoImpl();
    @Override
    public Emp login(String username, String password) {
        password= MD5Utils.md5(password);
        return empDao.login(username,password);
    }
}
